<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<h1>价格: {{price}}</h1>
			<h1>添加价格符合: {{price | myCurrency('￥')}}</h1>
		</div>
		<script src="../vue.min.js"></script>
		<script>
			new Vue({
				el: '#app',
				data: {
					price: 356
				},
				filters: {
					myCurrency: function (myInput, arg1) {
						var result = arg1 + myInput;
						return result;
					}
				}
			});
		</script>
	</body>
</html>
